import request from '@/utils/request'

// 查询流程定义列表
export function listDefinition(query) {
    return request({
        url: '/process/general/listDefinition',
        method: 'get',
        params: query
    })
}

//查询审批环节信息
export function listUserTask(query) {
    return request({
        url: '/process/general/listUserTask',
        method: 'get',
        params: query
    })
}

//添加审批环节审批人信息
export function addTaskApprovar(data) {
    return request({
        url: '/process/general/addTaskApprovar',
        method: 'post',
        data: data
    })
}
